import request from '@/utils/request'

//店内保存区域
export function saveArea (data) {
  return request({
    url: 'channel/in-store/save-area',
    method: 'post',
    data
  })
}
// 查看区域数据
export function getSaveArea (params) {
  return request({
    url: 'channel/in-store/save-area',
    method: 'get',
    params
  })
}
//修改区域
export function modifyArea (data) {
  return request({
    url: 'channel/in-store/modify-area',
    method: 'post',
    data
  })
}
// 桌子区域列表
export function areaList (params) {
  return request({
    url: 'channel/in-store/area-list',
    method: 'get',
    params
  })
}
// 堂食商品分类
export function goodsType (params) {
  return request({
    url: 'channel/in-store/goods-type',
    method: 'get',
    params
  })
}
// 桌子区域列表
export function tableList (params) {
  return request({
    url: 'channel/in-store/table-list',
    method: 'get',
    params
  })
}
// 获取区域
export function getArea (params) {
  return request({
    url: 'channel/in-store/get-area',
    method: 'get',
    params
  })
}
//保存桌子
export function saveTable (data) {
  return request({
    url: 'channel/in-store/save-table',
    method: 'post',
    data
  })
}
//查看桌子
export function getSaveTable (params) {
  return request({
    url: 'channel/in-store/save-table',
    method: 'get',
    params
  })
}
//修改桌子
export function modifyTable (data) {
  return request({
    url: 'channel/in-store/modify-table',
    method: 'post',
    data
  })
}
//桌子类型列表
export function typeList (params) {
  return request({
    url: 'channel/in-store/type-list',
    method: 'get',
    params
  })
}
//保存桌子类型
export function saveType (data) {
  return request({
    url: 'channel/in-store/save-type',
    method: 'post',
    data
  })
}
//编辑桌子类型
export function getSaveType (params) {
  return request({
    url: 'channel/in-store/save-type',
    method: 'get',
    params
  })
}
//获取类型
export function getType (params) {
  return request({
    url: 'channel/in-store/get-type',
    method: 'get',
    params
  })
}
//修改类型
export function modifyType (data) {
  return request({
    url: 'channel/in-store/modify-type',
    method: 'post',
    data
  })
}
//批量添加桌子
export function batchTable (data) {
  return request({
    url: 'channel/in-store/batch-table',
    method: 'post',
    data
  })
}

//收银统计
export function cashierStatistics (params) {
  return request({
    url: 'channel/in-store/cashier-statistics',
    method: 'get',
    params
  })
}
//收银列表
export function cashierOrderList (params) {
  return request({
    url: 'channel/in-store/cashier-order-list',
    method: 'get',
    params
  })
}
//打印收银订单
export function cashierPrint (data) {
  return request({
    url: 'channel/in-store/cashier-print',
    method: 'post',
    data
  })
}
//修改活码
export function saveCode (data) {
  return request({
    url: 'channel/in-store/save-code',
    method: 'post',
    data
  })
}
//查看活码
export function getSaveCode (params) {
  return request({
    url: 'channel/in-store/save-code',
    method: 'get',
    params
  })
}
//查询桌子
export function getTable (params) {
  return request({
    url: 'channel/in-store/get-table',
    method: 'get',
    params
  })
}
//创建活码
export function establishCode (data) {
  return request({
    url: 'channel/in-store/establish-code',
    method: 'post',
    data
  })
}
//活码列表
export function codeList (params) {
  return request({
    url: 'channel/in-store/code-list',
    method: 'get',
    params
  })
}
//删除活码
export function delCode (data) {
  return request({
    url: 'channel/in-store/del-code',
    method: 'post',
    data
  })
}

//快餐订单
export function fastOrderList (params) {
  return request({
    url: 'channel/in-store/fast-order-list',
    method: 'get',
    params
  })
}
//修改快餐订单
export function modifyFastOrder (data) {
  return request({
    url: 'channel/in-store/modify-fast-order',
    method: 'post',
    data
  })
}
//快餐大屏幕
export function fastScreen (data) {
  return request({
    url: 'channel/screen/fast-screen',
    method: 'post',
    data
  })
}
//商家聚合码
export function getStoreCode (params) {
  return request({
    url: 'channel/in-store/get-store-code',
    method: 'get',
    params
  })
}

//店内桌子订单
export function getTableOrder (params) {
  return request({
    url: 'channel/in-store/table-order',
    method: 'get',
    params
  })
}
//店内订单
export function inStoreOrderList (params) {
  return request({
    url: 'channel/in-store/in-store-order-list',
    method: 'get',
    params
  })
}
//操作店内订单
export function modifyInStoreOrder (data) {
  return request({
    url: 'channel/in-store/modify-in-store-order',
    method: 'post',
    data
  })
}
//清台
export function cleanTable (data) {
  return request({
    url: 'channel/in-store/clean-table',
    method: 'post',
    data
  })
}

//店内统计
export function getStatistics (params) {
  return request({
    url: 'channel/in-store/statistics',
    method: 'get',
    params
  })
}

//开卡统计
export function getOrderStatistics (params) {
  return request({
    url: 'channel/pay-vip/order-statistics',
    method: 'get',
    params
  })
}
//开卡记录
export function getViplist (params) {
  return request({
    url: 'channel/pay-vip/order-list',
    method: 'get',
    params
  })
}
//堂食快餐订单查询
export function outOrderList (params) {
  return request({
    url: 'channel/in-store/out-order-list',
    method: 'get',
    params
  })
}
